#ifndef TASK_H_H
#define TASK_H_H

#include <string.h>
#include <sys/types.h> 
#include <unistd.h>
#include "config.h"


/**
* Structure representing a task.
* A task was called from parent process pid
* It defines an array which contains the task keyword to process
* It also defines a bloc identifier as an Integer that represents the part of the mkfifo memory in which object received parameters have to be retrieved
* The blocReturnId is the bloc identifier in the mkfifo where the function work can store its result  
* Blocs uses 1024 bytes, no less, no more 
*/
typedef struct Task {
	pid_t pid;	
	char task[MAX_VAR_LEN];
	int blocParamId;
	int blocReturnId;
} Task;




#endif /* TASK_H_H */
